package com.febs.common.domain;

public interface FebsConstant {

    /**
     * 前端页面路径前缀
     */
    String VIEW_PREFIX = "febs/views/";

    /**
     * excel
     */
    String XLSX_SUFFIX = ".xlsx";
    String XLSX_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";

    /**
     * 验证码缓存key前缀
     */
    String VALIDATE_CODE_PREFIX = "febs_captcha_";
    /**
     * 图形验证码 缓存 key
     */
    String CACHE_KEY_IMAGE_CODE = "febs:febs_captcha_";
    /**
     * 手机验证码 session key
     */
    String SESSION_KEY_SMS_CODE = "SESSION_KEY_SMS_CODE";
    /**
     * 前端验证码传递参数名称
     */
    String WEB_NAME_IMAGE_CODE = "imageCode";

    /**
     * 令牌前缀
     */
    String TOKEN_PREFIX = "Bearer ";

    /**
     * 令牌标识
     */
    String LOGIN_USER_KEY = "key";

    /**
     * token 缓存 key
     */
    String CACHE_KEY_TOKEN_PREFIX = "febs:febs_token_";


    /**
     * QQ 用户信息获取 URL
     */
    String GET_QQ_USER_INFO_URL = "https://graph.qq.com/user/get_user_info?oauth_consumer_key=%s&openid=%s";
    /**
     * QQ openId 获取 URL
     */
    String GET_QQ_OPEN_ID_URL = "https://graph.qq.com/oauth2.0/me?access_token=%s";
    /**
     * QQ 授权接口 URL
     */
    String QQ_AUTHORIZE_URL = "https://graph.qq.com/oauth2.0/authorize";
    /**
     * 获取 QQ AccessToken URL
     */
    String GET_QQ_ACCESSTOKEN_URL = "https://graph.qq.com/oauth2.0/token";
    /**
     * 微信用户信息获取 URL
     */
    String GET_WEIXIN_USER_INFO_URL = "https://api.weixin.qq.com/sns/userinfo?openid=";
    /**
     * 获取微信授权码 URL
     */
    String WEIXIN_AUTHORIZE_URL = "https://open.WeiXin.qq.com/connect/qrconnect";
    /**
     * 获取微信 AccessToken URL
     */
    String GET_WEIXIN_ACCESSTOKEN_URL = "https://api.WeiXin.qq.com/sns/oauth2/access_token";
    /**
     * 微信 Refresh Token URL
     */
    String WEIXIN_REFRESH_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/refresh_token";
    /**
     * 返回报文头 json格式，编码 utf-8
     */
    String JSON_UTF8 = "application/json;charset=utf-8";
    /**
     * 返回 html
     */
    String HTML_UTF8 = "text/html;charset=utf-8";
    /**
     * 用户注册 URL
     */
    String FEBS_REGIST_URL = "/user/regist";
    /**
     * 权限不足 URL
     */
    String FEBS_ACCESS_DENY_URL = "/access/deny/403";
    /**
     * 社交账号绑定成功 URL
     */
    String SOCIAL_BIND_SUCCESS_URL = "/social/bind/success";
    /**
     * 社交账号解绑成功 URL
     */
    String SOCIAL_UNBIND_SUCCESS_URL = "/social/unbind/success";
    /**
     * 社交账户 openId session key
     */
    String SESSION_KEY_SOCIAL_OPENID = "SESSION_KEY_SOCIAL_OPENID";

    /**
     * 第三方 API 接口地址
     */
    String MEIZU_WEATHER_URL = "http://aider.meizu.com/app/weather/listWeather";
    String MRYW_TODAY_URL = "https://interface.meiriyiwen.com/article/today";
    String MRYW_DAY_URL = "https://interface.meiriyiwen.com/article/day";
    String TIME_MOVIE_HOT_URL = "https://api-m.mtime.cn/Showtime/LocationMovies.api";
    String TIME_MOVIE_DETAIL_URL = "https://ticket-api-m.mtime.cn/movie/detail.api";
    String TIME_MOVIE_COMING_URL = "https://api-m.mtime.cn/Movie/MovieComingNew.api";
    String TIME_MOVIE_COMMENTS_URL = "https://ticket-api-m.mtime.cn/movie/hotComment.api";
}
